package com.htfyun.ft.pccommand;

import android.content.Context;
import android.content.SharedPreferences;


/**
 * Created by sst on 2018/7/17.
 */

public final class PCCommand {

    // pc 工具在写nvrom成功后, 会广播此 action
    public final static String PC_ACTION_NVROM_UPDATE = "htfyun.pccommand.action.NVROM_UPDATE";

    /**
     * 清楚emmc测试失败的那个标志<p>
     * 使用方法:<p>
     * adb shell am broadcast -a pc_action.ft.clear_emmc_failed_flag
     */
    public final static String PC_ACTION_CLEAR_EMMC_FAILED_FLAG = "pc_action.ft.clear_emmc_failed_flag";

    /**
     * 清楚cpu测试失败的那个标志<p>
     * 使用方法:<p>
     * adb shell am broadcast -a pc_action.ft.clear_cpu_failed_flag
     */
    public final static String PC_ACTION_CLEAR_CPU_FAILED_FLAG = "pc_action.ft.clear_cpu_failed_flag";

    /**
     * 设置某个测试项强行over<p>
     * 使用方法:<p>
     *     <p>adb shell am broadcast -a pc_action.ft.set_aging_item_force_test_over --ei item_id 1</p>
     *     <p>adb shell am broadcast -a pc_action.ft.clr_aging_item_force_test_over --ei item_id 1</p>
     *     item_id : {@link com.htfyun.ft.agingtest.AgingTestItemAttr#getId()}
     *
     */
    public final static String PC_ACTION_SET_AGING_ITEM_FORCE_TEST_OVER = "pc_action.ft.set_aging_item_force_test_over";
    public final static String PC_ACTION_CLR_AGING_ITEM_FORCE_TEST_OVER = "pc_action.ft.clr_aging_item_force_test_over";
    public final static String PC_ACTION_AGING_ITEM_INT_EXTRA = "item_id";

    /**
     * 停止老化测试<p>
     *  使用方法:<p>
     *      adb shell am broadcast -a pc_action.ft.disable_aging
     */
    public final static String PC_ACTION_SET_AGING_DISABLED = "pc_action.ft.disable_aging";

    /**
     * 设置所有测试都通过, 包括老化之后的测试项目.<p>
     * 使用方法:<p>
     *     adb shell am broadcast -a pc_action.ft.set_all_passed
     */
    public final static String PC_ACTION_SET_ALL_PASSED = "pc_action.ft.set_all_passed";

    /**
     * 设置所有测试都Fail, 包括老化之后的测试项目.<p>
     * 使用方法:<p>
     *     adb shell am broadcast -a pc_action.ft.set_all_failed
     */
    public final static String PC_ACTION_SET_ALL_FAILED = "pc_action.ft.set_all_failed";


    /**
     * 设置某一个测试项PASS.<p>
     *
     * item_id {@link com.htfyun.ft.fragment.factory.FactoryTestItemsEnum} <p>
     *  使用方法:<p>
     *  adb shell am broadcast -a pc_action.ft.set_item_passed --ei item_id 1003
     */
    public final static String PC_ACTION_SET_ITEM_PASSED = "pc_action.ft.set_item_passed";

    /**
     * 设置某一个测试项FAIL.<p>
     * item_id {@link com.htfyun.ft.fragment.factory.FactoryTestItemsEnum} <p>
     *  <p>
     *  使用方法:<p>
     *      adb shell am broadcast -a pc_action.ft.set_item_failed --ei item_id 1
     */
    public final static String PC_ACTION_SET_ITEM_FAILED = "pc_action.ft.set_item_failed";

    public final static String PC_ACTION_SET_ITEM_INT_EXTRA = "item_id";

    /**
     * 强制FT checked, 不再显示 FT, 用于客户开发.<p>
     * item_id {@link com.htfyun.ft.fragment.factory.FactoryTestItemsEnum} <p>
     *  <p>
     *  使用方法:<p>
     *      adb shell am broadcast -a pc_action.ft.force_checked
     */
    public final static String PC_ACTION_FORCE_CHECKED = "pc_action.ft.force_checked";


}
